﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;


namespace VehicleMaintenance.Models
{
    //[Table(Name = "AdminUser")]
    public class BaseInfo
    {
        //[Key]
        //[ForeignKey("TypeID")]
        //[DisplayName("房间类别编号")]
        //[StringLength(50)]
        //[Range(0.01, 10000.00, ErrorMessage = "价格必须在0.01到10000.00之间！")]
        //[Column(Name = "ID", IsPrimaryKey = true, UpdateCheck = UpdateCheck.Never, DbType = "bigint")]
        [Key]
        public int ID { get; set; }

        // [Column(Name = "Name")]
        [Display(Name = "店面名称")]
        [Required(ErrorMessage = "店面名称不能为空")]
        public string Name { get; set; }
        [Display(Name = "本店地址")]
        public string Address { get; set; }
        [Display(Name = "邮编")]
        public string PostCode { get; set; }
        [Display(Name = "联系电话")]
        public string TelePhone { get; set; }
        [Display(Name = "本店宗旨")]
        public string Purpose { get; set; }
    }
}
